#ifndef sensor_h
#define sensor_h

#include "DHT.h"
#include "Arduino.h"

class Sensor {
public:
  Sensor(uint8_t pin);
  void init();
  int getTemperature();
  int getHumidity();
  int getFailedAttempts();
  String getStatus();

private:
  int _temperature;
  int _humidity;

  uint8_t _failedAttempts;

  DHT _dht;
};

#endif

